home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gAdvertCounter, gAdvert, gAdvertTotal, gAdvertDelay
- gAdvertTotal = the number of castMembers of castLib "Advert"
- gAdvertCounter = 0
- gAdvert = random(gAdvertTotal)
- gAdvertDelay = 400
- the cpuHogTicks = 40
- AdChange()
- play movie "MacFormatReadMe"
- end
-
- on AdChange
- global gAdvertCounter, gAdvert, gAdvertTotal
- if gAdvert = gAdvertTotal then
- gAdvert = 1
- else
- if gAdvert < gAdvertTotal then
- gAdvert = gAdvert + 1
- end if
- end if
- sprite(12).member = member(gAdvert, "Advert")
- updateStage()
- gAdvertCounter = 0
- end
-